{
  "user": {
    "id": "{{$user.id}}",
    "nickname": "{{$user.nickName}}",
    "firstname": "{{$user.firstName}}",
    "lastname": "{{$user.lastName}}",
    "email": "{{$user.email}}",
    "group_name": "{{$user.group_name}}",
    {{assign var=total value=0}}
	{{foreach from=$userPoints item=point}}{{*start getting points*}}
	{{assign var=pointTypeName value=""}}
	{{foreach from=$pointTypes item=pointType}}{{*start getting pointtypes*}}
	{{if $point->getPointTypeId() eq $pointType->getPointTypeId()}}
	{{assign var=pointTypeName value=$pointType->getTypeName()}}
	{{/if}}
	{{/foreach}}{{*end getting pointtypes*}}
	{{if $pointTypeName eq "intellect" || $pointTypeName eq "strength" || $pointTypeName eq "social"}}
	{{assign var=total value=$total+$point->getPoint()}}
    "progress_{{$pointTypeName}}": "{{$point->getPoint()}}",
    "level_{{$pointTypeName}}": "0",
    {{else}}
    "progress_{{$pointTypeName}}": "0",
    "level_{{$pointTypeName}}": "0",
    {{/if}}
    {{/foreach}}{{*end getting points*}}
    "progress_total": "{{$total}}",
    "level_total": "0"
  }
}